@extends('admin.base')

@section('content')
    <div class="layui-card" style="margin-top: 20px; height:570px;">
        <div class="layui-card-body">
            <div class="layui-form">
                {{csrf_field()}}

                <div class="layui-form-item">
                    <label class="layui-form-label">网站位置</label>
                    <div class="layui-input-inline layui-width-300">
                        <select name="website_id" lay-verify="required" lay-filter="website_id">
                            @foreach($websiteData as $val)
                                <option value="{{$val['id']}}">{{$val['names']}}</option>
                            @endforeach
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">栏目</label>
                    <div class="layui-input-inline layui-width-300">
                        <select name="websites_topic_id" id="websites_topic_id" lay-verify="required">
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">开始时间</label>
                    <div class="layui-input-inline">
                        <input type="text" name="plan_time" lay-verify="required" autocomplete="off" class="layui-input layui-width-300" id="test5" placeholder="yyyy-MM-dd HH:mm:ss">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label for="" class="layui-form-label">文章数量</label>
                    <div class="layui-input-inline">
                        <input type="number" name="plan_numbers" value=""  lay-verify="required" autocomplete="off" placeholder="" class="layui-input layui-width-300">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button type="submit" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="formSubmitData" wy-data="{url:'{{route('admin.tasks.store')}}'}" ><i class="fa fa-save"></i> 保存</button>
                        <a href="javascript:parent.layui.layer.closeAll();" class="layui-btn layui-btn-primary layui-btn-sm"><i class="fa fa-reply-all" aria-hidden="true"></i>  取消</a>
                    </div>
                </div>

            </div>
        </div>
    </div>
@endsection

@section('script')
    @include("admin.tasks._js_create");
@endsection
